package com.zhuangjie.order.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zhuangjie.rider.dto.RiderEvaluateDTO;
import com.zhuangjie.shop.dto.ShopEvaluateDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 订单评价提交dto
 *
 * @author zhuangjie
 * @date 2024/04/25
 */
@Getter
@Setter
public class OrderEvaluateSubmitDTO {
    @ApiModelProperty("订单的id")
    @TableField("order_id")
    @NotNull(message = "订单的id不能为空")
    private Long orderId;

    @ApiModelProperty("骑手评价信息")
    private RiderEvaluateDTO riderEvaluate;

    @NotNull(message = "对店铺的评价不能为空")
    private ShopEvaluateDTO shopEvaluate;
}
